//
//  JWCateoryCollectionViewLayout.m
//  见闻新闻
//
//  Created by brother on 16/3/3.
//  Copyright © 2016年 JoanBoat. All rights reserved.
//

#import "JWCateoryCollectionViewLayout.h"

#define  With  [UIScreen mainScreen].bounds.size.width

@implementation JWCateoryCollectionViewLayout


-(instancetype)init {
    if (self = [super init]) {
        
        CGSize tempSize = CGSizeMake(With/3.0, With/3.0);
        self.itemSize = tempSize;
        
    }
    return self;
}

//- (instancetype)initWithCoder:(NSCoder *)aDecoder {
//    if (self = [super init]) {
//        CGSize tempSize = CGSizeMake(With/3.0, With/3.0);
//        self.itemSize = tempSize;
//    }
//    return self;
//}


-(BOOL)shouldInvalidateLayoutForBoundsChange:(CGRect)newBounds {

    return YES;
}



@end
